import type { RouteRecordRaw } from 'vue-router'

const versionRoutes: RouteRecordRaw[] = [
  {
    path: '/version',
    name: 'VersionConfig',
    redirect: { name: 'MainControl' },
    //component: () => import('@/views/version'),
    meta: {
      title: '版本管理',
      showPageHeader: true,
      showBack: false,
      currentActiveMenu: 'VersionConfig',
      tabs: [
        {
          title: '主控版本',
          key: 'MainControl'
        },
        {
          title: '节点版本',
          key: 'Node'
        }
      ]
    },
    children: [
      {
        path: 'main',
        name: 'MainControl',
        component: () => import('@/views/version/main/MainControl.vue')
      },
      {
        path: 'node',
        name: 'Node',
        component: () => import('@/views/version/node/NodeControl.vue')
      }
    ]
  }
]
export default versionRoutes
